import request from "../utils/request";

export function getOriginUrl(shortenUrl) {
  return request({
    url: `/shorten/${shortenUrl}`,
  })
}

export function shortenUrl(data) {
  return request({
    url: '/shorten',
    method: 'post',
    data
  })
}